Automatic Line Patrol
Function:
go.set_auto_trace(trace)
- Description: unlock or lock automatic line patrol
- When the automatic line patrol is unlocked, Magician Go starts line patrol with the default speed of 20 cm/s, and pid (0.5, 0, 0.5); when the automatic line patrol is locked, Magician Go stops line patrol.
- After the automatic line patrol is unlocked, other motion control instructions are unavailable.
- If the safety switch is turned on, Magician Go will stop moving when touching an obstacle.
- Required parameter: trace: state of automatic line patrol; 0: automatic line patrol is off; 1: automatic line patrol is on
- Return:
- True: The command has been finished.
- False: The command has not been finished.
Example
go.set_auto_trace(trace=1)The automatic line patrol of Magician Go is on.